#!/usr/bin/env python3

###############################################################################
# Name:        py3func_t.py
# Purpose:     functions template of python3 code, different from py3func.py,
#              you should copy and change the def-func.
# Author:      Bright Li
# Modified by:
# Created:     2018-09-01
# Version:     [0.0.2]
# RCS-ID:      $$
# Copyright:   (c) Bright Li
# Licence:
###############################################################################

''' 命令行参数 '''
import argparse

def getopt():
    parser = argparse.ArgumentParser("vkb", description="Virtual Keyboard【v3.1.4】2018/08/20")
    parser.add_argument("path_xml", action="store", help="the path of the [config].xml")
    parser.add_argument("-x", "--pos_x", action="store", type=int, help="position x")
    return parser.parse_args()

''' 日志消息 '''
import logging

logging.basicConfig(level=logging.DEBUG, format="[%(asctime)s] %(levelname)s --> %(message)s")  # filename="test.log"
LOG = logging.getLogger(__file__)
# LOG.setLevel(logging.DEBUG)